from Base import Base
from selenium.webdriver.common.by import By

class Page(Base):
    # 1 定位器
    keywords_loc = (By.XPATH,'/html/body/div[2]/div/div/form/div[1]/input')
    # 2页面元素的封装
    def keywords(self):
        self.enter(self.keywords_loc,'凤冠')
    # 3业务逻辑
    def A3mall_search_01(self):
        self.open_url('http://10.59.9.14:7003/')
        self.keywords()
